<?php session_start();
    if (empty($_SESSION['is_login']) != 1) {
    header("Location:dashboard.php");
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Яката галерия :D</title>
        <link rel="stylesheet" type="text/css" href="css/style.css">
        
    </head>
    <body>
<header><h2>Галерия</h2><br/><br/></header>
        <section>
            <div id="wrapper">
                <span class="erorr"><?php if(!empty($_SESSION['erorr'])){ echo $_SESSION['erorr']; unset($_SESSION['erorr']); }?></span>
              <div id="loginWrapper">
                <form action="loginUser.php" method="post">
                    <b>Потребителско име</b><br/>
                    <input type="text" name="username" /><br/><br/>
                    <b>Парола</b><br/>
                    <input type="password" name="password" />
                    <input type="hidden" name="hidden" value="1" /><br/>
                    
                    <input type="submit" class="buttons" name="submit" value="Вход"/>
                </form>
                <a href="registration.php">Регистрация</a>
            </div>
            </div>
        </section>
<?php 
require_once './templates/footer.php';?>